<?php
class control_dwz_dwztoolBar extends QUI_Control_Abstract
{
	function render()
	{
		$attrs = $this->get('_attrs',array());
		$label = $this->get('_label',null);
		$ui = $this->get('_ui','span');
		$out = '<li>';
		$out .= "<{$ui} ";
		
		if (count($attrs)>0)
		{
			foreach ($attrs as $k=>$v)
			{
				$out.= " {$k} = \"".h($v)."\"";
			}
		}
		$out .= ' >';
		//如果设置了提示文字
		if (!is_null($label))
		{
			$out.= '<span>'.$label.'</span>';
		}
		$out.= "</{$ui}></li>";
		return $out;
	}
}
?>